package sample.sharding;

import java.util.Arrays;
import java.util.Collection;

import org.apache.shardingsphere.api.sharding.hint.HintShardingAlgorithm;
import org.apache.shardingsphere.api.sharding.hint.HintShardingValue;

/**
 * @date 2020/8/29
 */
public class MyHintShardingAlgorithm implements HintShardingAlgorithm {

	public Collection<String> doSharding(Collection availableTargetNames, HintShardingValue shardingValue) {
		return (shardingValue.getValues());
	}

}
